import request from '@/utils/request'

// 查询合同追加金额列表
export function listContractMoney(query) {
  return request({
    url: '/crm/contractMoney/list',
    method: 'get',
    params: query
  })
}

// 查询合同追加金额详细
export function getContractMoney(contractMoneyId) {
  return request({
    url: '/crm/contractMoney/' + contractMoneyId,
    method: 'get'
  })
}

// 新增合同追加金额
export function addContractMoney(data) {
  return request({
    url: '/crm/contractMoney',
    method: 'post',
    data: data
  })
}

// 修改合同追加金额
export function updateContractMoney(data) {
  return request({
    url: '/crm/contractMoney',
    method: 'put',
    data: data
  })
}

// 删除合同追加金额
export function delContractMoney(contractMoneyId) {
  return request({
    url: '/crm/contractMoney/' + contractMoneyId,
    method: 'delete'
  })
}

// 导出合同追加金额
export function exportContractMoney(query) {
  return request({
    url: '/crm/contractMoney/export',
    method: 'get',
    params: query
  })
}